#ifndef __MODULE_LED_H__
#define __MODULE_LED_H__
#ifdef __cpluscplus
extern "C" {
#endif

#include <stdint.h>
#include "fsl_ioctl.h"

typedef enum {LED_G = 0, LED_B, LED_Y, LED_NUM_MAX} led_index_t;

struct led_ops
{
    void (*init)(void);
    void (*setup)(uint8_t index, uint16_t on_time_ms, uint16_t off_time_ms, uint8_t repeat_num);
    uint8_t (*is_busy)(uint8_t index);
};

#define LED_HOLD      IOCTL_HOLD

extern const struct led_ops api_led;

#ifdef __cpluscplus
}
#endif
#endif
